<?php defined('IN_LK') or die('Access Denied');?>
<?php include self::admin_t('header');?>

<ul class="main_nav">
  <li><a href="?m=admin&c=category" target="_self" class="select">栏目管理</a></li>
  <li><a onclick="alert('暂时未做')" href="javascript:void(0);" target="_self">添加栏目</a></li>
</ul>
<div class="c"></div>
<div class="table-list">
  <table width="100%" cellspacing="0">
    <thead>
      <tr>
        <th width="20">排序</th>
        <th width="80">栏目编号</th>
        <th align="left" width="15%">栏目名称</th>
        <th align="left">描述</th>
        <th align="left" width="120">类型</th>
        <th width="60">访问</th>
        <th width="160">操作</th>
      </tr>
    </thead>
    <tbody>
    	<?php if($categorys){foreach($categorys as $category){?>
        <tr>
        <td align="center"><input type="text" class="input input_short input_short_center" name="listorder[<?php echo $category['catid'];?>]" value="<?php echo $category['catid'];?>" size="3" /></td>
        <td align="center"><?php echo $category['catid'];?></td>
        <td><?php echo $category['catname'];?></td>
        <td><?php echo $category['description'];?></td>
        <td><?php echo $category['type'] == 1 ? '分类信息' : '资讯';?></td>
        <td align="center"><a href="#">访问</a></td>
        <td><a href="?m=admin&c=content_manage&catid=<?php echo $category['catid'];?>">查看内容</a> | <a href="#">增加子类</a> | <a href="#">编辑</a></td>
        </tr>
		<?php }}?>
    </tbody>
  </table>
  <div class="bot">
    <input type="submit" value="排序" id="dosubmit" name="dosubmit" class="btn">
  </div>
</div>
<?php include self::admin_t('footer');?>
